﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NullIntDouble
{
    class NullIntDouble
    {
        static void Main(string[] args)
        {
            int? nullInt = null;
            Console.WriteLine(nullInt);

            double? nullDouble = null;
            Console.WriteLine(nullDouble);

            Console.WriteLine(nullInt + 12);
            Console.WriteLine(nullDouble + 14);

            nullInt = 28;
            Console.WriteLine(nullInt.GetValueOrDefault());

            nullDouble = 36;
            Console.WriteLine(nullDouble.GetValueOrDefault());
        }
    }
}
